package com.headStorm.jinzhi;

import org.junit.jupiter.api.Test;

public class JinZhiMain {

    public static void main(String[] args) {
//        System.out.println(Integer.toHexString(0xFF & -76));
//        System.out.println((byte)(-76));
//        int num = -76 & 0xff;
//        System.out.println(num);
//          for(;;){
//              System.out.println("aaaa");
//          }
        int a = 0;
        int b = 0;

        Integer aa = 0;
        Integer bb = 0;
        System.out.println(a == b);
        System.out.println(aa == bb);
    }

    public static String getBit(byte by) {
        StringBuffer sb = new StringBuffer();
        sb.append((by >> 7) & 0x1)
                .append((by >> 6) & 0x1)
                .append((by >> 5) & 0x1)
                .append((by >> 4) & 0x1)
                .append((by >> 3) & 0x1)
                .append((by >> 2) & 0x1)
                .append((by >> 1) & 0x1)
                .append((by >> 0) & 0x1);
        return sb.toString();
    }

    @Test
    public void test1(){
        byte b = 2;
        System.out.println(getBit(b));
    }

}
